<html xmlns:th="http://www.thymeleaf.org">
    <meta content="text/html;charset=UTF-8">
    <!-- 大模态框 start -->
    <div class="modal inmodal" id="wljLgModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg" id="modal-content-lg">

        </div>
    </div>

    <!-- 中模态框 start -->
    <div class="modal inmodal" id="wljMdModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog" id="modal-content-md">

        </div>
    </div>


    <!-- 小模态框 start -->
    <div class="modal inmodal" id="wljSmModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-sm" id="modal-content-sm">

        </div>
    </div>
    <!-- 全局js -->
    <script th:src="@{/js/jquery.min.js(v=2.1.4)}"></script>
    <script th:src="@{/js/bootstrap.min.js(v=3.3.6)}"></script>
    <script th:src="@{/js/base/browser.js}"></script>
    <script th:src="@{/js/plugins/form/jquery.form.js}"></script>

    <!-- Sweet alert -->
    <script th:src="@{/js/plugins/sweetalert/sweetalert.min.js}"></script>
    <script th:src="@{/js/plugins/validate/jquery.validate.min.js}"></script>
    <script th:src="@{/js/plugins/validate/messages_zh.min.js}"></script>
    <!-- Chosen -->
    <script th:src="@{/js/plugins/chosen/chosen.jquery.js}"></script>

    <script th:src="@{/js/plugins/toastr/toastr.min.js}"></script>

    <script th:src="@{/js/modal.js}"></script>
    <!-- 自定义js -->
    <script th:src="@{/js/content.js(v=1.0.0)}"></script>


    <script th:inline="javascript">
        toastr.options = {
            "closeButton": true,
            "progressBar": true,
            "positionClass": "toast-top-right",
            "onclick": null,
            "showEasing": "swing",
            "hideEasing": "linear",
            "showMethod": "fadeIn",
            "hideMethod": "fadeOut"
        };
        function openModal(url,loadModalMethod){
            $.ajax({
                url: url,
                type: 'get',
                success: function (data) {
                    loadModalMethod(data)
                },
                error: function (xhr) {
                    var errMsg=(xhr.responseJSON.message||xhr.responseJSON.msg)
                    if(xhr.status==403){
                        errMsg='你没有权限执行当前操作！！'
                        toastr["warning"](errMsg);
                    }else if(xhr.status==500){
                        toastr["error"](errMsg);
                    }
                }
            });
        }
    </script>

</html>
